package com.panshi.service;



import com.panshi.bean.BeiUser;

import com.panshi.api.vo.UserLoginVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.mail.MessagingException;

/**
 * <p>
 * 用户表  服务类
 * </p>
 *
 * @author 小伍
 * @since 2020-08-01
 */
@Service
@Api(tags = "普通用户")
public interface BeiUserService {

     @ApiOperation("根据uid查询用户信息")
     BeiUser queryUserByuid(@Param("uid") String uid);

     @ApiOperation(("根据电话号码 邮箱查询用户信息"))
     BeiUser queryUserBype(UserLoginVo beiUser);

     void addUser(UserLoginVo beiUser);

     void updateUser(BeiUser beiUser);

     void setemailarticle(Integer uid,Integer state,String title)throws MessagingException;

     void setemailarticleno(Integer uid,Integer state,String title)throws MessagingException;

     void setemailquestion(Integer uid,Integer state,String title)throws MessagingException;

     void setemailquestionno(Integer uid,Integer state,String title)throws MessagingException;

     void setemailanswer(Integer uid,Integer state,String title)throws MessagingException;

     void setemailanswerno(Integer uid,Integer state,String title)throws MessagingException;

}
